#ifndef LINKEDLISTEXCEPTION_H
#define LINKEDLISTEXCEPTION_H

#include <iostream>
#include <exception>
using namespace std;

//see file stdexcept in /usr/include/c++/SOME_VERSION/ for other examples of inheriting from exception
//note you have to add a member a function what because base class exception doesn't define at all (not even as "virtual")

class LinkedListException:public exception
{
	public:
		LinkedListException(const string& msg="");

		virtual ~LinkedListException() throw();

		virtual const char* what() const throw();

	private:
		string msg;
};

#endif
